special = '[(_:/,#%\=@)]' # Define special characters df['count'] = df['myvar'].str.count(special) # Count them